package com.fand.manager.controller;

import java.util.List;

import javax.annotation.Resource;

import com.fand.common.util.PageResult;
import com.fand.manager.model.operate.SysUserOperateSearchDTO;
import com.fand.manager.service.ISysUserOperateRecordService;
import com.fand.stater.model.es.SysUserOperateRecord;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: zhangjiabin
 * Email: javaboyok@163.com
 * CreateDate: 2021/6/27
 * Version: 1.0
 */
@Api(tags = "查询用户操作记录")
@RestController
@RequestMapping("/sys-operate")
public class SysUserOperateRecordController {

    @Resource
    private ISysUserOperateRecordService sysUserOperateRecordService;


    @ApiOperation("用户操作记录列表")
    @GetMapping("/list")
    public PageResult<List<SysUserOperateRecord>> list(SysUserOperateSearchDTO sysUserOperateSearchDTO){
        return sysUserOperateRecordService.list(sysUserOperateSearchDTO.builder());
    }

}
